#ifndef QTOOL_H
#define QTOOL_H

#include <QPushButton>
#include"MySlots.h"

class QTool : public QPushButton
{
public:
    QTool();
    virtual ~QTool();

    int index;//道具的位置
    bool who;//1是自己,0是对面
};

//手锯
class QToolKnife:public QTool{
public:
    QToolKnife(int i,bool w){
        index = i;
        who = w;
        connect(this,&QPushButton::click,myslots,[this](){myslots->QUseQTool(this);});
        //new

    }
    virtual ~QToolKnife(){}

};
//啤酒
class QToolBeer:public QTool{
public:
};

//手铐
class QToolHandcuffs:public QTool{
public:
};

//香烟
class QToolCigarette:public QTool{
public:
};

//放大镜
class QToolGlass:public QTool{
public:
};

//逆转器
class QToolReverser:public QTool{
public:
};

//肾上腺素
class QToolEpinephrine:public QTool{
public:
};

//电话
class QToolPhone:public QTool{
public:
};

//过期药品
class QToolDrug:public QTool{
public:
};



#endif // QTOOL_H